<div class="textViewContainer">
    <div class="textViewContent">
        <div [ngStyle]="{'display': isLoading ? 'none' : 'block'}" style="height:100%;">
            <div [ngStyle]="{'display': !error ? 'block' : 'none'}" class="textViewInnerContent">
                <pre #content style="overflow-y:auto;height:100%;font-size: 15px;" tabindex="-1">
                    <code>
                        {{text}}
                    </code>
                </pre>
            </div>
            <div *ngIf="error" class="error">
                <div class="errorText">
                    {{error}}
                </div>
            </div>
        </div>
    </div>
    <div *ngIf="isLoading" class="loadding">
            <div class="loadingImage">&nbsp;</div>
    </div>
    <div class="textViewOperation">
        <button class="btn btn-danger" (click)="onCloseViwer()" [disabled]="isLoading">关闭返回</button>
    </div>
</div>
    
    